﻿@model ESN.Models.LiveFolder

@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>LiveFolder</legend>

        <input data-val="true" data-val-required="The UserId field is required." id="name" name="name" type="text" />
        <div><label for="isPublic">Public in front page?
        </label>
        @Html.CheckBoxFor(model => model.isPublic)
        </div>
        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
